import { reactive } from "vue"

export const training_query = reactive({
    id: "",
    name: "",
});

export interface TrainingData {
    lectureName: string,
    createTime: string,
    deleted: boolean,
    isGenerateLecture: boolean,
    lectureId: number,
    id: number,
    teacherId: number,
    trainningApplicationId: number,
    trainningContent: string,
    trainningCost: number,
    updateTime: string,
}

interface PageData {
    page: number,//页码
    count: number,//总条数
    pagesize: number,//默认一页显示几条
}

export class TrainingListData {
    selectData: PageData = {
        page: 1,
        count: 0,
        pagesize: 5,
    }
    TrainingList: TrainingData[] = []//展示的内容的数据,接受后台返回的数据
}

